package com.shelpe.services.lexicon.properties;

import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Getter;
import lombok.Setter;

@ConfigurationProperties(prefix="lexicon.auto")
@Setter
@Getter
public class AutoDriveParams {

	private Map<String, Mode> modes;
	private int minPrice;
	private int lowProductSimilarity;
	private int lowCategorySimilarity;
	private int stateDays = 3;
	
	private int lowQscore;
	
	public Mode findMode(String type){
		return this.modes.get(type);
	}
	
	@Setter
	@Getter
	public static class Mode{
		private int sortWeight;
		private int sortValve;
		private int priceWeight;
		private int maxPriceRatio;
		private int minPriceRatio;
		private int pqrPriceRatio;
	}
}
